<template>
    <div class="container">
        <h1>hello 我是body 组件</h1>

        <h1>{{msg}}</h1>

        <button @click="btn">点我</button>

    </div>
</template>

<script>
    export default {
        name: "MyBody",
        data() {
            return {
                msg:"端午节发财"
            }
        },
        methods:{

            btn(){
                alert("点我干啥...")
            }

        }
    }

</script>

<style scoped>
    .container{
        border: #42b983 3px solid;
    }
</style>